<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>商户注册</title>
	<script type="text/javascript" src="jquery.min.js"></script>
	<script type="text/javascript" src="encrypt.js"></script>
</head>
<body>
	<center>
		<form>
			<table cellpadding="10">
				<tr>
					<td>会员姓名</td>
					<td><input type="text" name="memberName" placeholder="请输入会员姓名"></td>
				</tr>
				<tr>
					<td>手机号码</td>
					<td><input type="text" name="memberMobile" placeholder="请输入会员手机号码"></td>
				</tr>
				<tr>
					<td>证件号码</td>
					<td><input type="text" name="memberCertno" placeholder="请输入会员身份证号码"></td>
				</tr>
				<tr>
					<td>银行卡号</td>
					<td><input type="text" name="acctNo" placeholder="请输入银行卡号"></td>
				</tr>
				<tr>
					<td>银行行号</td>
					<td><input type="text" name="bankNo" placeholder="请输入银行行号"></td>
				</tr>
				<tr>
					<td>银行名称</td>
					<td><input type="text" name="bankName" placeholder="请输入银行名称"></td>
				</tr>
				<tr>
					<td>IP</td>
					<td><input type="text" name="ip" placeholder="请输入IP"></td>
				</tr>
				<tr>
					<td>GPS</td>
					<td><input type="text" name="gps" placeholder="请输入GPS"></td>
				</tr>
			</table>
		</form>
			<button onclick="register()">注册</button>
	</center>
</body>
	<script type="text/javascript">
		var content = {
				memberName : "test",
				memberMobile : "1709722196011",
				memberCertno : "17097221960",
				acctNo : "17097221960",
				bankNo : "17097221960",
				bankName : "17097221960",
				ip : "17097221960",
				gps : "17097221960",
				bizList : "[{'bizcode':'1001', 'rate':'0.5'}a{'bizcode':'1002', 'rate':'0.5'}]",
		}
		content = JSON.stringify(content);
		console.info(content);
		function register(){
			$.ajax({
		        type: "POST",
		        url: "MemberRegister",
		        dataType: 'json', 
		        data: encrypt("G1001", "c6fefb5abf8a2addd6185bafb8cba20e", content),
		        success: function(data) {
		        	console.info(data);
		        	alert(data.respDesc);
		        }
		    });
		}
	</script>
</html>